package com.jtpay.payresulthelper.model;

import java.text.DecimalFormat;

/**
 * Description:
 * File: AliDbModel.java
 * Author: Administrator
 * Create: 2018/09/16 10:45
 */
public class AliDbModel {
    private long _id;
    // 金额
    private String _money = "";

    // 备注
    private String _remark = "";

    //是否处理，处理后改为1，初始为0
    private String _is_ok = "";

    // pay time, add 00 20180808223300
    private String _time_stamp = "";

    // date
    private String _date = "";

    // ali order number
    private String _order_number = "";

    private String ali_order = "";

    public long get_id() {
        return _id;
    }

    public void set_id(long _id) {
        this._id = _id;
    }

    public DecimalFormat getDecimalFormat() {
        return decimalFormat;
    }

    public void setDecimalFormat(DecimalFormat decimalFormat) {
        this.decimalFormat = decimalFormat;
    }

    public String get_money() {
        return _money;
    }

    public void set_money(String _money) {
        this._money = _money;
    }

    public String get_remark() {
        return _remark;
    }

    public void set_remark(String _remark) {
        this._remark = _remark;
    }

    public String get_is_ok() {
        return _is_ok;
    }

    public void set_is_ok(String _is_ok) {
        this._is_ok = _is_ok;
    }

    public String get_time_stamp() {
        return _time_stamp;
    }

    public void set_time_stamp(String _time_stamp) {
        this._time_stamp = _time_stamp;
    }

    public String get_date() {
        return _date;
    }

    public void set_date(String _date) {
        this._date = _date;
    }

    public String get_order_number() {
        return _order_number;
    }

    public void set_order_number(String _order_number) {
        this._order_number = _order_number;
    }

    public String getAli_order() {
        return ali_order;
    }

    public void setAli_order(String ali_order) {
        this.ali_order = ali_order;
    }

    private DecimalFormat decimalFormat = new DecimalFormat("0.00");

    public String getFormatMoney() {
        double money = Double.parseDouble(_money);
        return decimalFormat.format(money);
    }

    @Override
    public String toString() {
        return "AliDbModel{" +
                "_id=" + _id +
                ", _money='" + _money + '\'' +
                ", _remark='" + _remark + '\'' +
                ", _is_ok='" + _is_ok + '\'' +
                ", _time_stamp='" + _time_stamp + '\'' +
                ", _date='" + _date + '\'' +
                ", _order_number='" + _order_number + '\'' +
                ", ali_order='" + ali_order + '\'' +
                ", decimalFormat=" + decimalFormat +
                '}';
    }
}
